package adc.app.ui.wicket;

import org.apache.wicket.model.IModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

public class PageLabeledLinkPanel<T extends AbstractLayoutPage> extends LabeledLinkPanel {

	private static final long serialVersionUID = 1L;

	public PageLabeledLinkPanel(String id, Class<T> pageClass, 
			PageParameters params, IModel<?> labelModel) {
		super(id, labelModel);
		this.setLink(new PageLink<T>(this.getLinkId(), pageClass, params));
	}
	
	public PageLabeledLinkPanel(String id, Class<T> pageClass, IModel<?> labelModel) {
		this(id, pageClass, new PageParameters(), labelModel);
	}

	public PageLabeledLinkPanel(String id, IModel<?> labelModel, PageLink<T> link) {
		super(id, labelModel, link);
	}
}
